from ..flask import app
from ..interceptor.userInterceptor import userInfo
from flask import g
from ..utils.responseUtils import successResponse


@app.route("/user/info")
@userInfo
def getUserInfo():
    user = g.user
    rsp = successResponse()
    rsp['data'] = user
    return rsp
